package com.hzcx.app.simplechat.chat;

import com.hzcx.app.simplechat.R;
import com.hzcx.app.simplechat.chat.bean.ChatMoreMenuBean;

import java.util.ArrayList;
import java.util.List;

/**
 *  聊天ui界面相关工具类
 */
public class ChatUi {

    public static ChatUi chatUi=null;

    public static ChatUi getInstance(){
        if(chatUi==null){
            chatUi=new ChatUi();
        }
        return chatUi;
    }

    /**
     *  初始化更多按钮菜单
     */
    public List<ChatMoreMenuBean> initMenu(boolean isChat){
        List<ChatMoreMenuBean> list=new ArrayList<>();
        list.add(new ChatMoreMenuBean(R.mipmap.ic_icon_chat_menu_photo,"照片",ChatMoreMenuBean.TAG_PHOTO));
        list.add(new ChatMoreMenuBean(R.mipmap.ic_icon_chat_menu_camera,"拍摄",ChatMoreMenuBean.TAG_CAMERA));
        if(isChat) {
            list.add(new ChatMoreMenuBean(R.mipmap.ic_icon_chat_menu_location, "位置", ChatMoreMenuBean.TAG_LOCATION));
            list.add(new ChatMoreMenuBean(R.mipmap.ic_icon_chat_menu_collect, "收藏", ChatMoreMenuBean.TAG_COLLECT));
            list.add(new ChatMoreMenuBean(R.mipmap.ic_icon_chat_menu_user, "个人名片", ChatMoreMenuBean.TAG_USER));
        }
        list.add(new ChatMoreMenuBean(R.mipmap.ic_icon_chat_menu_quick_msg, "快捷回复", ChatMoreMenuBean.TAG_QUICK_MSG));
        return list;
    }
}
